function starRating(){Array.from(document.querySelectorAll(".star")).forEach(a=>{let b=a.dataset.rating/5*100,c=`${10*Math.round(b/10)}%`;a.style.width=c})}function showResult(b){if(0!=b.length){if(window.XMLHttpRequest)var a=new XMLHttpRequest;else a=new ActiveXObject("Microsoft.XMLHTTP");a.onreadystatechange=function(){4==this.readyState&&200==this.status&&(document.getElementById("search-results").innerHTML=this.responseText)},a.open("GET","/ajax-search?q="+b,!0),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.send()}else document.getElementById("search-results").innerHTML=""}!function(a){var b=function(a,b,U){"use strict";if(function(){var b,c={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(b in I=a.lazySizesConfig||a.lazysizesConfig||{},c)b in I||(I[b]=c[b])}(),!b||!b.getElementsByClassName)return{init:function(){},cfg:I,noSupport:!0};var V,W,n,o,p,d,e,X,Y,Z,aa,ab,_,ac,ad,ae,af,ag,ah,q,r,s,t,u,v,w,x,y,f,g,h,z,A,B,C,i,D,j,E,ai,F,k,G,H,I,aj=b.documentElement,ak=a.HTMLPictureElement,J="addEventListener",al="getAttribute",am=a[J].bind(a),l=a.setTimeout,an=a.requestAnimationFrame||l,ao=a.requestIdleCallback,ap=/^picture$/i,aq=["load","error","lazyincluded","_lazyloaded"],ar={},as=Array.prototype.forEach,K=function(b,a){return ar[a]||(ar[a]=new RegExp("(\\s|^)"+a+"(\\s|$)")),ar[a].test(b[al]("class")||"")&&ar[a]},L=function(a,b){K(a,b)||a.setAttribute("class",(a[al]("class")||"").trim()+" "+b)},M=function(a,c){var b;(b=K(a,c))&&a.setAttribute("class",(a[al]("class")||"").replace(b," "))},at=function(b,c,a){var d=a?J:"removeEventListener";a&&at(b,c),aq.forEach(function(a){b[d](a,c)})},N=function(d,e,a,f,g){var c=b.createEvent("Event");return a||(a={}),a.instance=H,c.initEvent(e,!f,!g),c.detail=a,d.dispatchEvent(c),c},O=function(c,b){var d;!ak&&(d=a.picturefill||I.pf)?(b&&b.src&&!c[al]("srcset")&&c.setAttribute("srcset",b.src),d({reevaluate:!0,elements:[c]})):b&&b.src&&(c.src=b.src)},$=function(a,b){return(getComputedStyle(a,null)||{})[b]},P=function(c,b,a){for(a=a||c.offsetWidth;a49?function(){ao(g,{timeout:a}),a!==I.ricTimeout&&(a=I.ricTimeout)}:c(function(){l(g)},!0);return function(c){var b;(c=!0===c)&&(a=33),d||(d=!0,(b=f-(U.now()-e))<0&&(b=0),c||b<9?h():l(h,b))}},m=function(a){var b,c,d=function(){b=null,a()},e=function(){var a=U.now()-c;a<99?l(e,99-a):(ao||d)(d)};return function(){c=U.now(),b||(b=l(e,99))}},_=(q=/^img$/i,r=/^iframe$/i,s="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),t=0,u=0,v=-1,w=function(a){u--,a&&!(u<0)&&a.target||(u=0)},x=function(a){return null==ah&&(ah="hidden"==$(b.body,"visibility")),ah||!("hidden"==$(a.parentNode,"visibility")&&"hidden"==$(a,"visibility"))},y=function(f,c){var d,a=f,e=x(f);for(ad-=c,ag+=c,ae-=c,af+=c;e&&(a=a.offsetParent)&&a!=b.body&&a!=aj;)(e=($(a,"opacity")||1)>0)&&"visible"!=$(a,"overflow")&&(e=af>(d=a.getBoundingClientRect()).left&&aed.top-1&&ad500&&aj.clientWidth>500?500:370:I.expand,H._defEx=e,l=e*I.expFactor,m=I.hFac,ah=null,t2&&aa>2&&!b.hidden?(t=l,v=0):t=aa>1&&v>1&&u<6?e:0),o!==d&&(_=innerWidth+d*m,ac=innerHeight+d,k=-1*d,o=d),(ag=(f=c[a].getBoundingClientRect()).bottom)>=k&&(ad=f.top)<=ac&&(af=f.right)>=k*m&&(ae=f.left)<=_&&(ag||af||ae||ad)&&(I.loadHidden||x(c[a]))&&(Y&&u<3&&!h&&(aa<3||v<4)||y(c[a],d))){if(i(c[a]),j=!0,u>9)break}else!j&&Y&&!g&&u<4&&v<4&&aa>2&&(X[0]||I.preloadAfterLoad)&&(X[0]|| !h&&(ag||af||ae||ad||"auto"!=c[a][al](I.sizesAttr)))&&(g=X[0]||c[a])}g&&!j&&i(g)}},g=R(f),h=function(b){var a=b.target;a._lazyCache?delete a._lazyCache:(w(b),L(a,I.loadedClass),M(a,I.loadingClass),at(a,A),N(a,"lazyloaded"))},z=c(h),A=function(a){z({target:a.target})},B=function(a){var b,c=a[al](I.srcsetAttr);(b=I.customMedia[a[al]("data-media")||a[al]("media")])&&a.setAttribute("media",b),c&&a.setAttribute("srcset",c)},C=c(function(a,f,m,g,i){var b,c,e,d,j,k;(j=N(a,"lazybeforeunveil",f)).defaultPrevented||(g&&(m?L(a,I.autosizesClass):a.setAttribute("sizes",g)),c=a[al](I.srcsetAttr),b=a[al](I.srcAttr),i&&(d=(e=a.parentNode)&&ap.test(e.nodeName||"")),k=f.firesLoad||"src"in a&&(c||b||d),j={target:a},L(a,I.loadingClass),k&&(clearTimeout(Z),Z=l(w,2500),at(a,A,!0)),d&&as.call(e.getElementsByTagName("source"),B),c?a.setAttribute("srcset",c):b&&!d&&(r.test(a.nodeName)?function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.src=b}}(a,b):a.src=b),i&&(c||d)&&O(a,{src:b})),a._lazyRace&&delete a._lazyRace,M(a,I.lazyClass),Q(function(){var b=a.complete&&a.naturalWidth>1;k&&!b||(b&&L(a,"ls-is-cached"),h(j),a._lazyCache=!0,l(function(){"_lazyCache"in a&&delete a._lazyCache},9)),"lazy"==a.loading&&u--},!0)}),i=function(a){if(!a._lazyRace){var d,b=q.test(a.nodeName),e=b&&(a[al](I.sizesAttr)||a[al]("sizes")),c="auto"==e;(!c&&Y||!b|| !a[al]("src")&&!a.srcset||a.complete||K(a,I.errorClass)||!K(a,I.lazyClass))&&(d=N(a,"lazyunveilread").detail,c&&S.updateElem(a,!0,a.offsetWidth),a._lazyRace=!0,u++,C(a,d,c,e,b))}},D=m(function(){I.loadMode=3,g()}),j=function(){3==I.loadMode&&(I.loadMode=2),D()},E=function(){Y||(U.now()-ab<999?l(E,999):(Y=!0,I.loadMode=3,g(),am("scroll",j,!0)))},{_:function(){ab=U.now(),H.elements=b.getElementsByClassName(I.lazyClass),X=b.getElementsByClassName(I.lazyClass+" "+I.preloadClass),am("scroll",g,!0),am("resize",g,!0),am("pageshow",function(c){if(c.persisted){var a=b.querySelectorAll("."+I.loadingClass);a.length&&a.forEach&&an(function(){a.forEach(function(a){a.complete&&i(a)})})}}),a.MutationObserver?new MutationObserver(g).observe(aj,{childList:!0,subtree:!0,attributes:!0}):(aj[J]("DOMNodeInserted",g,!0),aj[J]("DOMAttrModified",g,!0),setInterval(g,999)),am("hashchange",g,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(a){b[J](a,g,!0)}),/d$|^c/.test(b.readyState)?E():(am("load",E),b[J]("DOMContentLoaded",g),l(E,2e4)),H.elements.length?(f(),Q._lsFlush()):g()},checkElems:g,unveil:i,_aLSL:j}),S=(F=c(function(c,d,e,a){var f,b,g;if(c._lazysizesWidth=a,a+="px",c.setAttribute("sizes",a),ap.test(d.nodeName||""))for(b=0,g=(f=d.getElementsByTagName("source")).length;b500?$("#casino-fixed").fadeIn(300):$("#casino-fixed").fadeOut(300)})}),window.addEventListener("load",function(){for(var b=document.getElementsByTagName("img"),a=0;a loading...';$(this).html()!==n&&(a.data("original-text",$(this).html()),a.html(n)),$.get(c,{limit:b,offset:m,tag:d,category:e,software:f,payments:g,licenses:h,languages:i,features:j,themes:k,search:l},function(a){!1===a.more&&$(".load-more").hide(),$(".ajax").append(a.html),$("html,body").animate({scrollTop:o.offset().top+50},0),starRating(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),m+=b}),setTimeout(function(){a.html(a.data("original-text"))},300)})}),function(a,b){a(b).on("hashchange load",function(){var b;(b=a(":target")).length>0&&a("html, body").stop().animate({scrollTop:b.offset().top-100},200)})}(jQuery,window),$(document).ready(function(){var a=document.querySelector(".progress-wrap path"),b=a.getTotalLength();a.style.transition=a.style.WebkitTransition="none",a.style.strokeDasharray=b+" "+b,a.style.strokeDashoffset=b,a.getBoundingClientRect(),a.style.transition=a.style.WebkitTransition="stroke-dashoffset 10ms linear";var c=function(){var c=$(window).scrollTop(),d=$(document).height()-$(window).height();a.style.strokeDashoffset=b-c*b/d};c(),$(window).scroll(c),jQuery(window).scroll(function(){jQuery(this).scrollTop()>500?jQuery("#review-fixed").fadeIn(300):jQuery("#review-fixed").fadeOut(300)}),jQuery(window).on("scroll",function(){jQuery(this).scrollTop()>50?jQuery(".progress-wrap").addClass("active-progress"):jQuery(".progress-wrap").removeClass("active-progress")}),jQuery(".progress-wrap").on("click",function(a){return a.preventDefault(),jQuery("html, body").animate({scrollTop:0},550),!1})})